﻿<Activity mc:Ignorable="sap sap2010 sads" x:Class="irunsharepoint.org.updateByLookup"
 xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 xmlns:mca="clr-namespace:Microsoft.CSharp.Activities;assembly=System.Activities"
 xmlns:p="http://schemas.microsoft.com/workflow/2012/07/xaml/activities"
 xmlns:p1="wf://workflow.windows.net/$Activities"
 xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger"
 xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation"
 xmlns:sap2010="http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation"
 xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib"
 xmlns:sco="clr-namespace:System.Collections.ObjectModel;assembly=mscorlib"
 xmlns:sn="clr-namespace:System.Net;assembly=System"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <x:Members>
    <x:Property Name="QuerylookUpField" Type="InArgument(x:String)" />
    <x:Property Name="QuerylookupValueID" Type="InArgument(x:String)" />
    <x:Property Name="FieldToUpdate" Type="InArgument(x:String)" />
    <x:Property Name="FieldValue" Type="InArgument(x:String)" />
    <x:Property Name="ListName" Type="InArgument(x:String)" />
    <x:Property Name="ServiceUrl" Type="InArgument(x:String)" />
    <x:Property Name="SiteUrl" Type="InArgument(x:String)" />
  </x:Members>
  <sap2010:ExpressionActivityEditor.ExpressionActivityEditor>C#</sap2010:ExpressionActivityEditor.ExpressionActivityEditor>
  <sap2010:WorkflowViewState.IdRef>irunsharepoint.org.updateByLookup_1</sap2010:WorkflowViewState.IdRef>
  <TextExpression.NamespacesForImplementation>
    <sco:Collection x:TypeArguments="x:String">
      <x:String>System</x:String>
      <x:String>System.Collections.Generic</x:String>
      <x:String>System.Data</x:String>
      <x:String>System.Text</x:String>
      <x:String>System.Net</x:String>
    </sco:Collection>
  </TextExpression.NamespacesForImplementation>
  <TextExpression.ReferencesForImplementation>
    <sco:Collection x:TypeArguments="AssemblyReference">
      <AssemblyReference>Microsoft.Activities</AssemblyReference>
      <AssemblyReference>Microsoft.SharePoint.DesignTime.Activities</AssemblyReference>
      <AssemblyReference>PresentationFramework</AssemblyReference>
      <AssemblyReference>System</AssemblyReference>
      <AssemblyReference>System.Activities</AssemblyReference>
      <AssemblyReference>System.Core</AssemblyReference>
      <AssemblyReference>System.Data</AssemblyReference>
      <AssemblyReference>System.Drawing</AssemblyReference>
      <AssemblyReference>System.Runtime.Serialization</AssemblyReference>
      <AssemblyReference>System.ServiceModel.Activities</AssemblyReference>
      <AssemblyReference>System.Xaml</AssemblyReference>
      <AssemblyReference>System.Xml</AssemblyReference>
      <AssemblyReference>System.Xml.Linq</AssemblyReference>
      <AssemblyReference>Microsoft.SharePoint</AssemblyReference>
      <AssemblyReference>Microsoft.SharePoint.Client.ServerRuntime</AssemblyReference>
      <AssemblyReference>mscorlib</AssemblyReference>
      <AssemblyReference>irunsharepoint.org</AssemblyReference>
    </sco:Collection>
  </TextExpression.ReferencesForImplementation>
  <Sequence sap2010:WorkflowViewState.IdRef="Sequence_1">
    <Sequence.Variables>
      <Variable x:TypeArguments="sn:HttpStatusCode" Name="status" />
    </Sequence.Variables>
    <p:HttpSend sap2010:WorkflowViewState.IdRef="HttpSend_1" Method="GET">
      <p:HttpSend.RequestHeaders>
        <InArgument x:TypeArguments="p:DynamicValue">
          <p:SetDynamicValueProperties>
            <scg:Dictionary x:TypeArguments="x:String, InArgument">
              <InArgument x:TypeArguments="x:String" x:Key="Content-Type">application/json</InArgument>
            </scg:Dictionary>
          </p:SetDynamicValueProperties>
        </InArgument>
      </p:HttpSend.RequestHeaders>
      <p:HttpSend.ResponseStatusCode>
        <OutArgument x:TypeArguments="sn:HttpStatusCode">
          <mca:CSharpReference x:TypeArguments="sn:HttpStatusCode">status</mca:CSharpReference>
        </OutArgument>
      </p:HttpSend.ResponseStatusCode>
      <p:HttpSend.Uri>
        <InArgument x:TypeArguments="x:String">
          <mca:CSharpValue x:TypeArguments="x:String">ServiceUrl + "/api/updatebatch/?siteurl=" + SiteUrl + "&amp;listName=" + ListName + "&amp;QuerylookUpField=" + QuerylookUpField + "&amp;QuerylookupValueID=" + QuerylookupValueID + "&amp;FieldToUpdate=" + FieldToUpdate + "&amp;FieldValue=" + FieldValue;</mca:CSharpValue>
        </InArgument>
      </p:HttpSend.Uri>
    </p:HttpSend>
    <p1:WriteToHistory sap2010:WorkflowViewState.IdRef="WriteToHistory_1">
      <p1:WriteToHistory.Message>
        <InArgument x:TypeArguments="x:String">
          <mca:CSharpValue x:TypeArguments="x:String">"updateBath status" + status.ToString();</mca:CSharpValue>
        </InArgument>
      </p1:WriteToHistory.Message>
    </p1:WriteToHistory>
    <sads:DebugSymbol.Symbol>d2JDOlxFbnRyZWdhYmxlc1xDb2RpZ28gZnVlbnRlXFNlcnZlclxmZWF0dXJlc1xpcnVuc2hhcmVwb2ludC5vcmdcdXBkYXRlQnlMb29rdXBcdXBkYXRlQnlMb29rdXAueGFtbAk3A1gOAgEBOwVPEgIBDFAFVhkCAQI+C0IpAgEgRwtHYAIBF0wLTMUCAgEOO0U7SgIBDVMLU3ECAQNAS0BbAgEh</sads:DebugSymbol.Symbol>
  </Sequence>
  <sap2010:WorkflowViewState.ViewStateManager>
    <sap2010:ViewStateManager>
      <sap2010:ViewStateData Id="HttpSend_1" sap:VirtualizedContainerService.HintSize="200,59" />
      <sap2010:ViewStateData Id="WriteToHistory_1" sap:VirtualizedContainerService.HintSize="200,68" />
      <sap2010:ViewStateData Id="Sequence_1" sap:VirtualizedContainerService.HintSize="222,291">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="irunsharepoint.org.updateByLookup_1" sap:VirtualizedContainerService.HintSize="262,371" />
    </sap2010:ViewStateManager>
  </sap2010:WorkflowViewState.ViewStateManager>
</Activity>